<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'>
        <meta name="robots" content="index, follow">
        <meta name="Description" content="Aplikasi Pondok Pesantren Al-itqon Jakarta, aplikasi, pondok pesantren, ponpes, al-itqon, jakarta" />
        <meta name="Keywords" content="Aplikasi Pondok Pesantren Al-itqon Jakarta, aplikasi, pondok pesantren, ponpes, al-itqon, jakarta" />
        <meta name="Distribution" content="Global" />
        <meta name="Author" content="soevar a.k.a supardi salmoe - supardi_salmoe@yahoo.co.id" />

        <link rel="shortcut icon" href="<?php echo base_url(); ?>asset/img/favicon.ico" type="image/x-icon" />

        <title><?php echo $title; ?></title>

        <!-- bootstrap 3.0.2 -->
        <link href="<?php echo base_url(); ?>asset/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
        <link href="<?php echo base_url(); ?>asset/css/bootstrap-theme.min.css" rel="stylesheet" type="text/css" />
        <!-- font Awesome -->
        <link href="<?php echo base_url(); ?>asset/css/font-awesome.min.css" rel="stylesheet" type="text/css" />
        <!-- Ionicons -->
        <link href="<?php echo base_url(); ?>asset/css/ionicons.min.css" rel="stylesheet" type="text/css" />
        <!-- Theme style -->
        <link href="<?php echo base_url(); ?>asset/css/AdminLTE.css" rel="stylesheet" type="text/css" />

        <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
        <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
        <!--[if lt IE 9]>
          <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
          <script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
        <![endif]-->
    </head>
    <body class="skin-blue">
        <!-- header logo: style can be found in header.less -->
        <header class="header">
            <a href="<?php echo base_url(); ?>" class="logo">
                <!-- Add the class icon to your logo image or logo icon to add the margining -->
                <?php echo $this->lang->line('perusahaan'); ?>
            </a>
            <!-- Header Navbar: style can be found in header.less -->
            <nav class="navbar navbar-static-top" role="navigation">
                <!-- Sidebar toggle button-->
                <a href="#" class="navbar-btn sidebar-toggle" data-toggle="offcanvas" role="button">
                    <span class="sr-only">Toggle navigation</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </a>
                <div class="navbar-right">
                    <ul class="nav navbar-nav">
                        <!-- User Account: style can be found in dropdown.less -->
                        <li class="dropdown user user-menu">
                            <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                                <i class="glyphicon glyphicon-user"></i>
                                <span><?php echo $this->session->userdata('member_nama'); ?> <i class="caret"></i></span>
                            </a>
                            <ul class="dropdown-menu">
                                <!-- User image -->
                                <li class="user-header bg-light-blue">
                                    <?php if ($this->session->userdata('member_kelamin') == '1') { ?>
                                        <img src="<?php echo base_url(); ?>asset/img/avatar_l.png" class="img-circle" alt="User Image" />
                                    <?php } else { ?>
                                        <img src="<?php echo base_url(); ?>asset/img/avatar_p.png" class="img-circle" alt="User Image" />

                                    <?php } ?>
                                    <p>
                                        <?php echo $this->session->userdata('member_namanya'); ?> - <?php echo $this->auth->_role_name($this->session->userdata('member_role')); ?>
                                        <small>Member since <?php echo date('M, Y', strtotime($this->session->userdata('member_tanggal'))); ?></small>
                                    </p>
                                </li>
                                <!-- Menu Footer-->
                                <li class="user-footer">
                                    <div class="pull-left">
                                        <a href="<?php echo base_url(); ?>index.php/profiles" class="btn btn-default btn-flat"><?php echo $this->lang->line('menu_profiles'); ?></a>
                                    </div>
                                    <div class="pull-right">
                                        <a href="<?php echo base_url(); ?>index.php/logins/logout" class="btn btn-default btn-flat"><?php echo $this->lang->line('logout'); ?></a>
                                    </div>
                                </li>
                            </ul>
                        </li>
                    </ul>
                </div>
            </nav>
        </header>

        <div class="wrapper row-offcanvas row-offcanvas-left">
            <!-- Left side column. contains the logo and sidebar -->
            <aside class="left-side sidebar-offcanvas">
                <!-- sidebar: style can be found in sidebar.less -->
                <section class="sidebar">
                    <!-- sidebar menu: : style can be found in sidebar.less -->
                    <ul class="sidebar-menu">
                        <li>
                            <a href="<?php echo base_url(); ?>">
                                <i class="fa fa-home"></i> <span><?php echo $this->lang->line('menu_home'); ?></span>
                            </a>
                        </li>
                        <?php if ($this->session->userdata('member_role') == '1') { ?>
                            <li class="treeview">
                                <a href="#">
                                    <i class="fa fa-folder"></i>
                                    <span><?php echo $this->lang->line('menu_pendataan'); ?></span>
                                    <i class="fa fa-angle-left pull-right"></i>
                                </a>
                                <ul class="treeview-menu">
                                    <li><a href="<?php echo base_url(); ?>index.php/members"><i class="fa fa-angle-double-right"></i> <?php echo $this->lang->line('menu_member'); ?></a></li>
                                    <li><a href="<?php echo base_url(); ?>index.php/musaids"><i class="fa fa-angle-double-right"></i> <?php echo $this->lang->line('menu_musaid'); ?></a></li>
                                    <li><a href="<?php echo base_url(); ?>index.php/santris"><i class="fa fa-angle-double-right"></i> <?php echo $this->lang->line('menu_santri'); ?></a></li>
                                    <li><a href="<?php echo base_url(); ?>index.php/kat_kasuss"><i class="fa fa-angle-double-right"></i> <?php echo $this->lang->line('menu_kat_kasus'); ?></a></li>
                                    <li><a href="<?php echo base_url(); ?>index.php/sub_kasuss"><i class="fa fa-angle-double-right"></i> <?php echo $this->lang->line('menu_sub_kasus'); ?></a></li>
                                </ul>
                            </li>
                            <li class="treeview">
                                <a href="#">
                                    <i class="fa fa-folder"></i>
                                    <span><?php echo $this->lang->line('menu_proses'); ?></span>
                                    <i class="fa fa-angle-left pull-right"></i>
                                </a>
                                <ul class="treeview-menu">
                                    <li><a href="<?php echo base_url(); ?>index.php/kasuss"><i class="fa fa-angle-double-right"></i> <?php echo $this->lang->line('menu_kasus'); ?></a></li>
                                    <li><a href="<?php echo base_url(); ?>index.php/izins"><i class="fa fa-angle-double-right"></i> <?php echo $this->lang->line('menu_izin'); ?></a></li>
                                </ul>
                            </li>
                            <li class="treeview">
                                <a href="#">
                                    <i class="fa fa-folder"></i>
                                    <span><?php echo $this->lang->line('menu_laporan'); ?></span>
                                    <i class="fa fa-angle-left pull-right"></i>
                                </a>
                                <ul class="treeview-menu">
                                    <li><a href="<?php echo base_url(); ?>index.php/laporans/laporan_per_santri/"><i class="fa fa-angle-double-right"></i> <?php echo $this->lang->line('menu_lap_per_santri'); ?></a></li>
                                    <li><a href="<?php echo base_url(); ?>index.php/laporans/laporan_per_tanggal/"><i class="fa fa-angle-double-right"></i> <?php echo $this->lang->line('menu_lap_per_tanggal'); ?></a></li>
                                    <li><a href="<?php echo base_url(); ?>index.php/laporans/laporan_izin_per_santri/"><i class="fa fa-angle-double-right"></i> <?php echo $this->lang->line('menu_lap_izin_per_santri'); ?></a></li>
                                    <li><a href="<?php echo base_url(); ?>index.php/laporans/laporan_izin_per_tanggal/"><i class="fa fa-angle-double-right"></i> <?php echo $this->lang->line('menu_lap_izin_per_tanggal'); ?></a></li>
                                </ul>
                            </li>
                        <?php } else if ($this->session->userdata('member_role') == '3') { ?>
                            <li><a href="<?php echo base_url(); ?>index.php/musaid_menus/santri/"><i class="fa fa-user-md"></i> <?php echo $this->lang->line('menu_santri'); ?></a></li>
                            <li><a href="<?php echo base_url(); ?>index.php/musaid_menus/lihat_kasus/"><i class="fa fa-eye"></i> <?php echo $this->lang->line('lihat_kasus'); ?></a></li>
                            <li><a href="<?php echo base_url(); ?>index.php/musaid_menus/kasus/"><i class="fa fa-plus-square"></i> <?php echo $this->lang->line('menu_kasus'); ?></a></li>
                            <li><a href="<?php echo base_url(); ?>index.php/musaid_menus/lihat_izin/"><i class="fa fa-eye"></i> <?php echo $this->lang->line('lihat_izin'); ?></a></li>
                            <li><a href="<?php echo base_url(); ?>index.php/musaid_menus/izin"><i class="fa fa-plus-square"></i> <?php echo $this->lang->line('menu_izin'); ?></a></li>
                        <?php } ?>
                        <li>
                            <a href="<?php echo base_url(); ?>index.php/logins/logout">
                                <i class="fa fa-sign-out"></i> <span><?php echo $this->lang->line('logout'); ?></span>
                            </a>
                        </li>
                    </ul>
                </section>
                <!-- /.sidebar -->
            </aside>